package com.example.annatation;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class TestListener implements ServletContextListener {

    @Override
    public void contextDestroyed(ServletContextEvent arg0) {
        System.out.println("===============" + this.getClass().getName() + "销毁===============");
    }

    @Override
    public void contextInitialized(ServletContextEvent sce) {
        System.out.println("===============" + this.getClass().getName() + "监听===============");
    }
}
